package team.seekers.skill.service;

import org.springframework.transaction.annotation.Transactional;
import team.seekers.skill.entity.dao.UserSeekSkill;
import com.baomidou.mybatisplus.extension.service.IService;
import team.seekers.skill.entity.vo.fore.UserLearnStatusVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hbc
 * @since 2021-02-04
 */
public interface UserSeekSkillService extends IService<UserSeekSkill> {

    // 列出该用户在每个类型的学习情况，按照已学技能数占全部技能数的百分比的形式展现
    UserLearnStatusVO getLearnStatusByUserId(String userId);

    @Transactional(rollbackFor=Exception.class)
    boolean addStartByType(String userId,String type);

    @Transactional(rollbackFor=Exception.class)
    boolean addEndByType(String userId, String type);
}
